package com.shanshan.manage.web.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.shanshan.manage.web.mapper.AGuestMapper;
import com.shanshan.manage.web.domain.AGuest;
import com.shanshan.manage.web.service.IAGuestService;

/**
 * 客户Service业务层处理
 * 
 * @author zhaoShuHeng
 * @date 2023-08-30
 */
@Service
public class AGuestServiceImpl implements IAGuestService 
{
    @Autowired
    private AGuestMapper aGuestMapper;

    /**
     * 查询客户
     * 
     * @param guestId 客户主键
     * @return 客户
     */
    @Override
    public AGuest selectAGuestByGuestId(Long guestId)
    {
        return aGuestMapper.selectAGuestByGuestId(guestId);
    }

    /**
     * 查询客户列表
     * 
     * @param aGuest 客户
     * @return 客户
     */
    @Override
    public List<AGuest> selectAGuestList(AGuest aGuest)
    {
        return aGuestMapper.selectAGuestList(aGuest);
    }

    /**
     * 新增客户
     * 
     * @param aGuest 客户
     * @return 结果
     */
    @Override
    public int insertAGuest(AGuest aGuest)
    {
        return aGuestMapper.insertAGuest(aGuest);
    }

    /**
     * 修改客户
     * 
     * @param aGuest 客户
     * @return 结果
     */
    @Override
    public int updateAGuest(AGuest aGuest)
    {
        return aGuestMapper.updateAGuest(aGuest);
    }

    /**
     * 批量删除客户
     * 
     * @param guestIds 需要删除的客户主键
     * @return 结果
     */
    @Override
    public int deleteAGuestByGuestIds(Long[] guestIds)
    {
        return aGuestMapper.deleteAGuestByGuestIds(guestIds);
    }

    /**
     * 删除客户信息
     * 
     * @param guestId 客户主键
     * @return 结果
     */
    @Override
    public int deleteAGuestByGuestId(Long guestId)
    {
        return aGuestMapper.deleteAGuestByGuestId(guestId);
    }
}
